﻿<Page x:Class="PFC.Program.Verification.Pages.ConnectDB"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:PFC.Program.Verification.Pages"
      xmlns:n="clr-namespace:PFC.CustomControls"
      mc:Ignorable="d" 
      d:DesignHeight="450" 
      d:DesignWidth="800">

    <Grid Background="#FFFF8000">

        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--Название проги-->
        <StackPanel>
            <TextBlock Text="PFC"
                       FontFamily="Calibri"
                       Foreground="White"
                       VerticalAlignment="Center"
                       HorizontalAlignment="Center"
                       FontSize="50"/>
            <TextBlock Text="(personal finance control)"
                       FontFamily="Calibri"
                       VerticalAlignment="Center"
                       HorizontalAlignment="Center"
                       FontSize="25" 
                       Foreground="#FF4D4D4D"/>
        </StackPanel>

        <!--Информирующее поле-->
        <TextBlock Name="infoField_Txb"
                   FontFamily="Calibri"
                   Text="Пример текста"
                   Foreground="SpringGreen"
                   Padding="5"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Bottom"
                   FontSize="20"
                   Background="#FF4D4D4D"/>

        <!--Интерактивное поле-->
        <StackPanel Grid.Row="1"
                    VerticalAlignment="Center">

            <WrapPanel Orientation="Horizontal"
                       VerticalAlignment="Center"
                       HorizontalAlignment="Center"
                       ButtonBase.Click="WrapPanel_Click">

                <!--Переход на страницу авторизации-->
                <n:NavButton x:Name="loginBtn"
                             TabIndex="0"
                             Width="70" 
                             ImageSource="/Resources/login.png"
                             NavUri="/Program/Verification/Pages/Login.xaml"
                             Visibility="Visible"
                             IsEnabled="False"/>

                <Grid Margin="0 0 0 0"/>

                <!--Перехода на страницу регистрации-->
                <n:NavButton x:Name="regisBtn"
                             Width="70"
                             TabIndex="1"
                             ImageSource="/Resources/regis.png"
                             NavUri="/Program/Verification/Pages/Regis.xaml"
                             Visibility="Visible"
                             IsEnabled="False"/>
                
            </WrapPanel>

        </StackPanel>

        <!--Критические и информационные сообщения-->
        <TextBlock Name="criticalErrorWarning_Txb"
                   Grid.Row="2"
                   FontFamily="Calibri"
                   FontSize="10"
                   Margin="5"
                   TextWrapping="Wrap"
                   VerticalAlignment="Bottom"
                   HorizontalAlignment="Right"
                   Foreground="Red"
                   Padding="5"
                   Background="#FF4D4D4D"/>
        

        <!--Статус подключения-->
        <Image Name="connectionStatus_Img"
               Grid.Row="2"
               VerticalAlignment="Bottom"
               HorizontalAlignment="Left"
               Source="/Resources/Connection-.png"
               Width="64"/>
        
        <!--Кнопка обновления соединения-->
        <Button Name="refreshConnection_Btn"
                Grid.Row="2"
                Content="Обновить"
                FontSize="20"
                VerticalAlignment="Bottom"
                HorizontalAlignment="Left"
                Margin="80 0 0 10"
                Visibility="Hidden" 
                Click="refreshConnection_Btn_Click"/>

    </Grid>
</Page>
